import request from "/@/utils/request"

/**
 * 获取统计数据 周
 * @param query
 */
export function getDataAnalysisByWeek(query?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile/getDataAnalysisByWeek',
    method: 'get',
    params: query
  })
}

/**
 * 获取统计数据 月
 * @param query
 */
export function getDataAnalysisByMonth(query?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile/getDataAnalysisByMonth',
    method: 'get',
    params: query
  })
}

/**
 * 获取统计数据 年
 * @param query
 */
export function getDataAnalysisByYear(query?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile/getDataAnalysisByYear',
    method: 'get',
    params: query
  })
}


export function fetchList(query?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/duorou/duorouKgbotcamFile/' + id,
    method: 'get'
  })
}

export function delObjs(ids?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile',
    method: 'delete',
    data: ids
  })
}

export function putObj(obj?: Object) {
  return request({
    url: '/duorou/duorouKgbotcamFile',
    method: 'put',
    data: obj
  })
}

